import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import ElTreeSelect from 'el-tree-select';
import eIconPicker from 'e-icon-picker';
import 'e-icon-picker/dist/index.css';
import 'e-icon-picker/dist/main.css';
import axios from '@/utils/http';
import VueCropper from 'vue-cropper';
// collapse 展开折叠
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
import 'element-ui/lib/theme-chalk/index.css';
// fade/zoom 等
// 过渡动画 css
import 'element-ui/lib/theme-chalk/base.css';
import '@/assets/css/index.scss';
import '@/router/permission';
import '@/directive/permission';
import utils from '@/utils';
import resetForm = utils.resetForm;
import download = utils.download;

Vue.config.productionTip = false;

Vue.use(VueCropper);
Vue.prototype.resetForm = resetForm;
Vue.prototype.$download = download;
Vue.prototype.$axios = axios;
Vue.component(CollapseTransition.name, CollapseTransition);
Vue.use(ElementUI);
Vue.use(ElTreeSelect);
Vue.use(eIconPicker);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
